<?php if(!defined("PATH_HD"))exit;?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>行天下 看世界</title>
        <link type="text/css" href="http://localhost/self/static/ui/css/flick/jquery-ui-1.8.23.custom.css" rel="stylesheet" />
        <script type="text/javascript" src="http://localhost/self/static/ui/js/jquery-1.8.0.min.js"></script>
        <script type="text/javascript" src="http://localhost/self/static/ui/js/jquery-ui-1.8.23.custom.min.js"></script>
        <script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/self';
		HDPHP = 'http://localhost/self/hdphp';
		STATIC = 'http://localhost/self/static';
		DATA = 'http://localhost/self/data';
		WEB = 'http://localhost/self/admin.php';
		APP = 'http://localhost/self/admin.php';
		CONTROL = 'http://localhost/self/admin.php/config';
		METH = 'http://localhost/self/admin.php/config/index';
		URL = 'http://localhost/self/admin.php/config/index/tid/0';
		ORG = 'http://localhost/self/hdphp/org';
		TPL = 'http://localhost/self/admin/tpl';
		PUBLIC = 'http://localhost/self/admin/tpl/public';
</script>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <base target="iframeShow"/>
        <link type="text/css" rel="stylesheet" href="http://localhost/self/admin/tpl/public/css/base.css"/>
        <script type='text/javascript'>
            $(function(){
                $("#tabs").tabs({selected:<?php echo isset($_GET['tid'])?$_GET['tid']:0?>});
            })
        </script>

    </head>
    <body>
         <!--现在的位置-->
            <div class="position">
                <span class="word">您现在的位置： ->  </span>
                <a href="http://localhost/self/admin.php/config/index" target="iframeShow" class="new_pos">基本设置</a>
                <span class="word"> -> 修改配置项 </span>
            </div>
        <!--正文内容-->
            <form action="http://localhost/self/admin.php/config/config_update" method="post" enctype="multipart/form-data">
                <div id="tabs"> 
                <!--列表-->                    
                    <ul>
                        <li><a href="#tabs-0">网站基本设置</a></li>
                        <li><a href="#tabs-1">验证码</a></li>
                    </ul>
                <!--第一个列表内容-->
                    <div id="tabs-0">   
                        <table class="table1">
                        <tr>
                            <th>网站说明</th>
                            <th>参数设置</th>
                            <th>模板调用方式</th>
                        </tr>
                        <?php $hd["list"]["v"]["total"]=0;
if(!empty($config['base'])):
$hd_list_total = count($config['base']);
$hd_list_row = min(floor($hd_list_total/1),20);
$hd["list"]["hd_list_total"]=$hd_list_total;
$hd_list_id=0;
for($i=0;$i<$hd_list_total;$i+=1):
$hd["list"]["v"]["first"]=$hd_list_id==0?true:false;
$hd["list"]["v"]["last"]=$hd_list_id>=$hd_list_row-1?true:false;
$hd["list"]["v"]["index"]=$hd_list_id+1;
$v=current($config['base']);next($config['base']);?>

                            <tr>
                                <td style="text-align:right;"><?php echo $v['title'];?></td>
                                <td>
                                    <?php if($v['name']=='recycled'){?>
                                        <input type="radio" name="<?php echo $v['name'];?>" value="1" <?php if($v['value']==1){?>checked="checked"<?php }?>/> 是
                                        <input type="radio" name="<?php echo $v['name'];?>" value="0" <?php if($v['value']!=1){?>checked="checked"<?php }?>/> 否
                                    <?php  }else{ ?>
                                        <input type="text" style="width:360px;text-align:left;color:#555;" name= "<?php echo $v['name'];?>" value="<?php echo $v['value'];?>">                                    
                                    <?php }?>
                                    
                                </td>
                                <td><?php echo $v['html'];?></td>
                            </tr>
                        <?php if($hd_list_id>=$hd_list_row-1)break;
$hd_list_id++;
endfor;
$hd["list"]["v"]["total"]=$hd_list_id+1;
endif;
?>
                        </table>
                    </div>
                <!--第二个列表内容-->
                    <div id="tabs-1">
                        <table class="table1">
                        <tr>
                            <th>网站说明</th>
                            <th>参数设置</th>
                            <th>模板调用方式</th>
                        </tr>
                        <?php $hd["list"]["v"]["total"]=0;
if(!empty($config['code'])):
$hd_list_total = count($config['code']);
$hd_list_row = min(floor($hd_list_total/1),20);
$hd["list"]["hd_list_total"]=$hd_list_total;
$hd_list_id=0;
for($i=0;$i<$hd_list_total;$i+=1):
$hd["list"]["v"]["first"]=$hd_list_id==0?true:false;
$hd["list"]["v"]["last"]=$hd_list_id>=$hd_list_row-1?true:false;
$hd["list"]["v"]["index"]=$hd_list_id+1;
$v=current($config['code']);next($config['code']);?>

                            <tr>
                                <th><?php echo $v['title'];?></th>
                                <th>
                                    <input type="text" style="width:360px;text-align:left;color:#555;" value="<?php echo $v['value'];?>" name="<?php echo $v['name'];?>">
                                </th>
                                <th><?php echo $v['html'];?></th>
                            </tr>                        
                        <?php if($hd_list_id>=$hd_list_row-1)break;
$hd_list_id++;
endfor;
$hd["list"]["v"]["total"]=$hd_list_id+1;
endif;
?>
                        </table>
                    </div>
                <!--共有按钮-->
                    <div>
                        <input type="submit" class="submit" value="更改完成" style="font-size:13px;">
                    </div>
            </div>
        </form>    
    </body>
</html>